home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Extensions
- Sent: 6/26/96 1:32 PM
- Received: 6/26/96 1:41 PM
- From: Mark Lanett, mlanett@meer.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- At 11:35 AM 6/26/96, The3Furies@aol.com wrote:
- >I have searched through both the ODFDraw & ODFCyberStarter projects and
- >am unable to find any evidence of extension subclasses (I assume I'm
- >not looking in the right places?) I searched on the word extension
- >and nothing in the project matched - just stuff for the semantic
- >interface extension in the framework files. I am essentially looking
- >for a spcecific example of how to implement what is discussed in the
- >Extensions Manager engineering note which tells what to do, but not
- >when or where.
-
- The cyberdog extension is implemented in SLCyPart.{idl,cpp}; part of the
- ODFCyberLibrary project. It is registered in FW_MCyberPart::Initialize
- (FWCyPart.cpp), which should be called from YourPart::Initialize, and
- created in FW_MCyberPart::CreateCyberExtension.
-
- Both the Cyberdog and scripting extensions are more generic than they need
- to be for a single part. In order for us to put them in shared library we
- couldn't call into C++ objects directly, so they use C callbacks. This
- would not be necessary for your own extension. Extensions are virtually
- identical in ODF and non-ODF parts; the only real difference would be how
- you catch exceptions. You should call IsValid in every method; the OpenDoc
- examples are not robust.
-
-
- --
- Mark Lanett <mlanett@meer.net>
- Have a bajillion brilliant Jobsian lithium licks
-
-